// vue.config.js
module.exports = {
    publicPath: './',
  //webpack - dev - server 的配置项
    devServer: {
        // host: '127.0.0.1',
        disableHostCheck: true,
        proxy: {
            '/api': {
                target: 'http://localhost:3000', //对应自己的接口
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
                }
        }
    },
   // 部署应用时的基本 URL
   // baseUrl: process.env.NODE_ENV === 'production' ? 'https://api.xxxxxx.cn' : 'http://192.168.0.220',
    outputDir: undefined,
    assetsDir: 'static',
    runtimeCompiler: undefined,
    productionSourceMap: true,
    parallel: undefined,
    css: undefined
}
